﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" 
           elementFormDefault="qualified" 
           xmlns="http://master-of-omega/RaceModifiers.xsd" 
           targetNamespace="http://master-of-omega/RaceModifiers.xsd" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="RaceModifiers">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Races">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Race">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="History" type="xs:string" />
                    <xs:element name="Environment">
                      <xs:complexType>
                        <xs:attribute name="BioFood" type="xs:unsignedByte" use="required" />
                        <xs:attribute name="MineralFood" type="xs:unsignedByte" use="required" />
                        <xs:attribute name="PlanetType" type="xs:string" use="required" />
                        <xs:attribute name="Techs" type="xs:unsignedByte" use="required" />
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Modifiers">
                      <xs:complexType>
                        <xs:attribute name="Value" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="Name" type="xs:string" use="required" />
                  <xs:attribute name="Spelling" type="xs:string" use="required" />
                  <xs:attribute name="Species" type="xs:string" use="required" />
                  <xs:attribute name="Picture" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="RacePicks">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RacePickSetting" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Modifiers">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" name="Modifier">
                            <xs:complexType>
                              <xs:attribute name="Name" type="xs:string" use="required" />
                              <xs:attribute name="Value" type="xs:string" use="required" />
                              <xs:attribute name="Description" type="xs:string" use="required" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element maxOccurs="unbounded" name="RacePick">
                      <xs:complexType>
                        <xs:attribute name="Name" type="xs:string" use="required" />
                        <xs:attribute name="Points" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="Name" type="xs:string" use="required" />
                  <xs:attribute name="Description" type="xs:string" use="required" />
                  <xs:attribute name="Picture" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="Description" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>